package com.amado.course43awt;

import java.awt.*;
public class OnTrackOne extends Frame
{
	OnTrackOne(String name)
	{
		super(name);
		Panel pCenter = new Panel();
		Panel pCenterUp = new Panel();
		Panel pCenters = new Panel();
		Panel pUp = new Panel();
		Panel pUpDown = new Panel();
		Panel pUps = new Panel();
		Panel pDown = new Panel();
		Panel pDownCenter = new Panel();
		setLayout(new BorderLayout());

		add(pUps,BorderLayout.NORTH);
		add(pCenters,BorderLayout.CENTER);
		add(pDown,BorderLayout.SOUTH);
		add(new Panel(),BorderLayout.WEST);
		add(new Panel(),BorderLayout.EAST);
		
		pUps.setLayout(new BorderLayout());
		pUps.add(new Panel(),BorderLayout.NORTH);
		pUps.add(pUp,BorderLayout.CENTER);
		pUps.add(pUpDown,BorderLayout.SOUTH);

		pUp.setLayout(new GridLayout(1,10));
		pUp.add(new Panel());
		pUp.add(new Label("OnTrack"));
		pUp.add(new Panel());
		pUp.add(new Panel());
		pUp.add(new Label("首页"));
		pUp.add(new Panel());
		pUp.add(new Panel());
		pUp.add(new Panel());
		pUp.add(new Label("？帮助"));
		pUp.add(new Label("退出"));
		
		pUpDown.setLayout(new GridLayout(1,7));
		pUpDown.add(new Panel());
		pUpDown.add(new Panel());
		pUpDown.add(new Label("数据恢复"));
		pUpDown.add(new Panel());
		pUpDown.add(new Panel());
		pUpDown.add(new Panel());
		pUpDown.add(new Label("紧急启动"));

		pCenters.setLayout(new BorderLayout());
		pCenters.add(pCenterUp,BorderLayout.NORTH);
		pCenters.add(pCenter,BorderLayout.CENTER);
		pCenterUp.setLayout(new GridLayout(1,1));
		pCenterUp.add(new Label("Use the f0llowing instructions to create an emergency boot CD-ROM",Label.LEFT));
		pCenter.setLayout(new GridLayout(1,1));
		List list = new List(6,false);
		pCenter.add(list);
		list.add("Creating an Emergency Bootable CD_ROM");
		list.add("asfndsafmsafdsda");
		list.add("dsfasdf");

		pDown.setLayout(new BorderLayout(10,1));
		pDown.add(pDownCenter,BorderLayout.CENTER);
		pDown.add(new Panel(),BorderLayout.NORTH);
		pDown.add(new Panel(),BorderLayout.SOUTH);
		pDown.add(new Panel(),BorderLayout.WEST);
		pDown.add(new Panel(),BorderLayout.EAST);
		pDownCenter.setLayout(new GridLayout(1,6,30,1));
		pDownCenter.add(new Button("帮助"));
		pDownCenter.add(new Panel());
		pDownCenter.add(new Panel());
		pDownCenter.add(new Button("取消"));
		pDownCenter.add(new Button("上一步"));
		pDownCenter.add(new Button("完成"));


		pUp.setBackground(new Color(35,207,138));
		pCenters.setBackground(Color.WHITE);
		setBackground(Color.gray);
		setBounds(150,150,650,500);
		show();
	}
	public static void main(String[] args) 
	{
		new OnTrackOne("OnTrack");
	}
}
